﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FastCodeGeneration.Core.Framework
{
    public class Page<T> : IPage<T>
    {
        public Page()
        {

        }
        public Page(int pageindex, int pageSize)
        {
            PageIndex = pageindex;
            PageSize = pageSize;
        }

        /// <summary>
        /// 当前页
        /// </summary>
        public virtual int PageIndex { set; get; } = 1;

        /// <summary>
        /// 每页多少数据
        /// </summary>
        public virtual int PageSize { set; get; } = 30;

        /// <summary>
        /// 共多少数据
        /// </summary>
        public virtual int TotalCount { set; get; }

        /// <summary>
        /// 数据
        /// </summary>
        public virtual List<T> Records { set; get; } = new List<T>();
    }
}
